﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Himp.Erp
{
    /// <summary>
    /// 药品调拨明细
    /// </summary>
    public class MaterialAllocateDetl : Entity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 物料调拨Id
        /// </summary>
        public Guid MaterialAllocateRecId { get; set; }

        /// <summary>
        /// 物料调拨
        /// </summary>
        public MaterialAllocateRec MaterialAllocateRec { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public Guid MaterialInfoId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public MatlInfo MaterialInfo { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string Bchno { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        [Column(TypeName = "decimal(18,6)")]
        public decimal Pric { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal Cnt { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        [Column(TypeName = "decimal(18,6)")]
        public decimal Amt { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Exp { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }
    }
}
